Skip to content

Remove logic that auto adds TLS when api key is enabled#1010

Merged
THardy98 merged 1 commit intomasterfrom
envconfig_remove_auto_tls
Sep 17, 2025
Merged

Remove logic that auto adds TLS when api key is enabled#1010
THardy98 merged 1 commit intomasterfrom
envconfig_remove_auto_tls

Conversation

@THardy98
Copy link
Copy Markdown
Contributor

@THardy98 THardy98 commented Sep 16, 2025

What was changed

This PR removes logic that adds a default TLS config object when api key is enabled, but no TLS configuration was provided.

Why?

This makes the API semantics more clear.
Lang SDKs will now know:

  • when a TLS config object is provided by core, a configuration has been explicitly specified
  • when no TLS configuration was specified (will receive no object, instead of an empty object)

Lang SDKs now know with certainty when to apply default TLS configuration to the client (generally this means tls: true in the client config):

  • when an api_key is provided, but no TLS config was specified

@THardy98 THardy98 requested a review from a team as a code owner September 16, 2025 18:14
@THardy98 THardy98 merged commit 4078190 into master Sep 17, 2025
19 of 48 checks passed
@THardy98 THardy98 deleted the envconfig_remove_auto_tls branch September 17, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants